<?php



class ReleaseXFansubMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ReleaseXFansubMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('release_x_fansub');
		$tMap->setPhpName('ReleaseXFansub');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('RELEASE_ID', 'ReleaseId', 'int' , CreoleTypes::INTEGER, 'release', 'ID', true, null);

		$tMap->addForeignPrimaryKey('FANSUB_ID', 'FansubId', 'int' , CreoleTypes::INTEGER, 'fansub', 'ID', true, null);

	} 
} 